Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metric/system/cgroup: introduce cache for cgroup v2 #117

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Conversation

florianl
Copy link
Member

What does this PR do?

Reintroduce the improvements from #103. This PR got reverted with #113 because of #109. The issue, that got reported in #109, was fixed with #116.

So its time to bring back the performance improvements by reintroducing the cache for cgroup v2.

Why is it important?

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.md

@florianl florianl added enhancement New feature or request Team:Elastic-Agent Label for the Agent team labels Nov 24, 2023
@florianl florianl requested a review from a team as a code owner November 24, 2023 09:23
@florianl florianl requested review from ycombinator and rdner and removed request for a team November 24, 2023 09:23
Copy link
Contributor

@leehinman leehinman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Optional suggestion.

metric/system/cgroup/util.go Outdated Show resolved Hide resolved
metric/system/cgroup/util.go Outdated Show resolved Hide resolved
@florianl florianl force-pushed the flo-revert-#113 branch 2 times, most recently from f4c21aa to dcf15d6 Compare November 28, 2023 13:14
@florianl
Copy link
Member Author

florianl commented Dec 7, 2023

sorry - but making linter happy seems to be impossible ...

@pierrehilbert
Copy link

@cmacknz should we just force merge this one?

@cmacknz
Copy link
Member

cmacknz commented Dec 18, 2023

If the linter is the only problem we can force merge this, at least for me the linter is not even a blocking step (the squash and merge button is available) so there is no force merge required.

@florianl florianl merged commit 4daddf3 into main Dec 21, 2023
2 of 5 checks passed
@cmacknz cmacknz deleted the flo-revert-#113 branch December 21, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants